package cn.tedu.charging.common.exception;


import cn.tedu.charging.common.pojo.response.StatusCode;
import lombok.Getter;

/*自定义业务异常类*/
public class ServiceException extends RuntimeException{
    @Getter
    private StatusCode statusCode;
//alt+insert生成该类的构造器
    public ServiceException(StatusCode statusCode) {
        this.statusCode = statusCode;
    }
}
